package com.zerui.manager.web;

import com.zerui.cola.dto.PageResponse;
import com.zerui.manager.web.cmd.*;
import com.zerui.manager.web.vo.OperationRecordVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @Author wh
 * @create_time 2023-08-23 15:33
 */
@Validated
@Api(value = "设备操作记录", tags = "门禁设备管理")
@RestController
@RequestMapping("/api/v1/operation/record")
public class OperationRecordController {

    @Resource
    private OperationRecordService operationRecordService;

	@ApiOperation(value = "操作记录分页列表", tags = "门禁设备管理")
	@PostMapping("/getPageList")
	public PageResponse<OperationRecordVO> getPageList(@RequestBody OperationRecordCmd operationRecordCmd) {
		return operationRecordService.getPageList(operationRecordCmd);
	}

}
